﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MonopolyRandy;

namespace MonopolyRandyTests
{
    [TestClass]
    public class BordTests
    {
        [TestMethod]
        public void TestOfVeldenCorrectAangemaaktWorden()
        {
            var monopolyBord = new Bord();

            Assert.AreEqual(expected: 40, actual: monopolyBord.Velden.Count);

        }

        [TestMethod]
        public void TestOfGetVeldHetJuisteVeldTerugggeeft()
        {
            var monopolyBord = new Bord();

            Assert.AreEqual(expected: monopolyBord.Velden[0], actual: monopolyBord.GetHuidigVeldPlusAantalOgen(monopolyBord.Velden[0], 0));
            Assert.AreEqual(expected: monopolyBord.Velden[1], actual: monopolyBord.GetHuidigVeldPlusAantalOgen(monopolyBord.Velden[0], 1));
            Assert.AreEqual(expected: monopolyBord.Velden[20], actual: monopolyBord.GetHuidigVeldPlusAantalOgen(monopolyBord.Velden[10], 10));
        }
    }
}

